package com.roomio.core.model;

import java.util.Date;

import javax.persistence.Column;

/**
 * Class must be used as a component in any object that need auditing information
 * 
 * @author Shailendra
 * 
 */
public class AuditInfo extends BaseObject {

	/**
	 * CustomerMembership creating the entity
	 */
	@Column(name = "CREATED_BY", length = 25)
	private String createdBy;

	/**
	 * The created date for this entity
	 */
	@Column(name = "CREATED_DATE")
	private Date createdDate;

	/**
	 * Last CustomerMembership updating the entity
	 */
	@Column(name = "UPDATED_BY", length = 25)
	private String updatedBy;

	/**
	 * Last updated date
	 */
	@Column(name = "UPDATED_DATE")
	private Date updatedDate;

	
	public AuditInfo() {
	}

	public String getCreatedBy() {
		return createdBy;
	}

	public void setCreatedBy(String createdBy) {
		this.createdBy = createdBy;
	}

	public Date getCreatedDate() {
		return createdDate;
	}

	public void setCreatedDate(Date createdDate) {
		this.createdDate = createdDate;
	}

	public String getUpdatedBy() {
		return updatedBy;
	}

	public void setUpdatedBy(String updatedBy) {
		this.updatedBy = updatedBy;
	}

	public Date getUpdatedDate() {
		return updatedDate;
	}

	public void setUpdatedDate(Date updatedDate) {
		this.updatedDate = updatedDate;
	}
	
	@Override
	public String toString() {
		return "AuditInfo [createdBy=" + createdBy + ", createdDate=" + createdDate + ", updatedBy=" + updatedBy + ", updatedDate=" + updatedDate
				+ "]";
	}

	
}
